<#include "/common/head.ftl">

<@showTitle title="${i18n.getMessage('class')} > ${i18n.getMessage('teaching')}">
	<a href="#" onclick="cc('offering/showInfoOffering.sgt?id=${(offering.id)!}')">Class</a>
</@showTitle>

<div style="margin-top:10px;margin-bottom:10px;text-align:center">
	<form>	
		<input type="hidden" name="offeringId" value="${offering.id}"/>
		${i18n.getMessage('fromDate')}:
		<input type="text" name="fromDate" value="${fromDate?date}" style="width:100px"/><img class="calendarImg" src="images/calendar/calendar.gif" onclick="displayCalendar(document.forms[0].fromDate, '${i18n.getMessage('format.date')}', this)"/>
		${i18n.getMessage('toDate')}:
		<input type="text" name="toDate" value="${toDate?date}" style="width:100px"/><img class="calendarImg" src="images/calendar/calendar.gif" onclick="displayCalendar(document.forms[0].toDate, '${i18n.getMessage('format.date')}', this)"/>
		<input type="button" value="${i18n.getMessage('report')}" onclick="showForm()" class="button_style"/> 
	</form>
</div>

<br/>

<script>
	
showForm = function() {
	pp('offering/makeFormCheckingTeachingAttendance.sgt?' + document.forms[0].serialize());
}
	
</script>